package com.ruoyi.video.view;

import com.ruoyi.Apps.Utils.AppUtils;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.video.domain.VideoImages;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * video对象 video_images
 * 
 * @author ruoyi
 * @date 2025-03-23
 */
public class VideoImagesView
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 视频ID */
    @Excel(name = "视频ID")
    private Long videoId;

    /** 路径 */
    @Excel(name = "路径")
    private String path;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private Long time;

    public VideoImagesView(VideoImages videoImages) {
        setId(videoImages.getId());
        setTime(videoImages.getTime());
        setVideoId(videoImages.getVideoId());
        setPath(AppUtils.pathLocal2http(videoImages.getPath()));
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setVideoId(Long videoId) 
    {
        this.videoId = videoId;
    }

    public Long getVideoId() 
    {
        return videoId;
    }

    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }

    public void setTime(Long time) 
    {
        this.time = time;
    }

    public Long getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("videoId", getVideoId())
            .append("path", getPath())
            .append("time", getTime())
            .toString();
    }
}
